package com.leemz.design.chapter6.pattern;

public abstract class ExportOperate {
    public boolean export(String data) {
        ExportFileApi api = factoryMethod();
        return api.export(data);
    }

    /**
     * 抽象方法，交由子类进行实现
     * @return
     */
    protected abstract ExportFileApi factoryMethod();
}
